<T:ViewBase x:Class="WPFExcelReport.TWPREKOPF02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WRKMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPREKOPF.WRKMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WRKLIEFNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPREKOPF.WRKLIEFNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WRKREART:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPREKOPF.WRKREART}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WRKRENR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPREKOPF.WRKRENR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WRKAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPREKOPF.WRKAENZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WRKAENB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPREKOPF.WRKAENB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WRKAEND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPREKOPF.WRKAEND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WRKNEUB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPREKOPF.WRKNEUB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WRKNEUD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPREKOPF.WRKNEUD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WRKREDAT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPREKOPF.WRKREDAT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WRKSTA:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPREKOPF.WRKSTA}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsWPREKOPF,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwWPREKOPF}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwWPREKOPF, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="WRKMANDANT"
                                    Binding="{Binding Path=WRKMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKLIEFNR"
                                    Binding="{Binding Path=WRKLIEFNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKLIEFNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKREART"
                                    Binding="{Binding Path=WRKREART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKREART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKRENR"
                                    Binding="{Binding Path=WRKRENR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKRENR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKAENZL"
                                    Binding="{Binding Path=WRKAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKAENB"
                                    Binding="{Binding Path=WRKAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKAEND"
                                    Binding="{Binding Path=WRKAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKNEUB"
                                    Binding="{Binding Path=WRKNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKNEUD"
                                    Binding="{Binding Path=WRKNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKREDAT"
                                    Binding="{Binding Path=WRKREDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKREDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKSTA"
                                    Binding="{Binding Path=WRKSTA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKSTA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKKONDSL"
                                    Binding="{Binding Path=WRKKONDSL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKKONDSL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKWAEHRSL"
                                    Binding="{Binding Path=WRKWAEHRSL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKWAEHRSL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKLIEFNRB"
                                    Binding="{Binding Path=WRKLIEFNRB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKLIEFNRB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKUMFAK"
                                    Binding="{Binding Path=WRKUMFAK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKUMFAK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKSTDSKT"
                                    Binding="{Binding Path=WRKSTDSKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKSTDSKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKSKTTAGE01"
                                    Binding="{Binding Path=WRKSKTTAGE01, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKSKTTAGE01}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKSKTP01"
                                    Binding="{Binding Path=WRKSKTP01, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKSKTP01}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKSKTTAGE02"
                                    Binding="{Binding Path=WRKSKTTAGE02, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKSKTTAGE02}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKSKTP02"
                                    Binding="{Binding Path=WRKSKTP02, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKSKTP02}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKSKTTAGE03"
                                    Binding="{Binding Path=WRKSKTTAGE03, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKSKTTAGE03}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKSKTP03"
                                    Binding="{Binding Path=WRKSKTP03, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKSKTP03}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKVALUTA"
                                    Binding="{Binding Path=WRKVALUTA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKVALUTA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKWERTDAT"
                                    Binding="{Binding Path=WRKWERTDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKWERTDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKNETTO"
                                    Binding="{Binding Path=WRKNETTO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKNETTO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKVERPACK"
                                    Binding="{Binding Path=WRKVERPACK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKVERPACK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKFRACHT"
                                    Binding="{Binding Path=WRKFRACHT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKFRACHT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKVERSICH"
                                    Binding="{Binding Path=WRKVERSICH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKVERSICH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKZOLL"
                                    Binding="{Binding Path=WRKZOLL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKZOLL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKUSTPRZ"
                                    Binding="{Binding Path=WRKUSTPRZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKUSTPRZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKUST"
                                    Binding="{Binding Path=WRKUST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKUST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKREWERT"
                                    Binding="{Binding Path=WRKREWERT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKREWERT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKSKTBETR"
                                    Binding="{Binding Path=WRKSKTBETR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKSKTBETR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKSKTWERT"
                                    Binding="{Binding Path=WRKSKTWERT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKSKTWERT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKFIBUDAT"
                                    Binding="{Binding Path=WRKFIBUDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKFIBUDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKFIBUBELEG"
                                    Binding="{Binding Path=WRKFIBUBELEG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKFIBUBELEG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKABRECHKZ"
                                    Binding="{Binding Path=WRKABRECHKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKABRECHKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WRKFILLER"
                                    Binding="{Binding Path=WRKFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WRKFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
